<?php

class UserGroup
{
	protected static $_init = null;
	
	protected $groupdb;
	
	protected function __construct()
	{
		require_once(D_P . 'data/cache/group.php');
		$this->groupdb = $group;
	}
	
	protected function init()
	{
		if (is_null(self::$_init))
		{
			self::$_init = new UserGroup();
		}
		return self::$_init;
	}
	
	public function getGroup($groupid)
	{
		$obj = self::init();
		return $obj->groupdb[$groupid];
	}
	
	
}

?>